package test3_7;

public class homework3_6 {
    public static void main(String[] args) {
        /*
        有一个字符变量char c,判断是否为字母
         */
        //用int直接定义character,转ASCII码值去比较
        int character = 'c';
        //用if判断是否是大小写字母
        if((character>=65 && character<=90) || (character>=97 && character<=122)){
            System.out.println("是字母");
        } else{
            System.out.println("不是字母");
        }
    }
}
